package com.dogegg.lbblog.annotation;

import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.Import;
import org.springframework.core.Ordered;

import java.lang.annotation.*;


@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(LogRecordConfigureSelector.class)
public @interface EnableLogRecord {

    AdviceMode mode() default AdviceMode.PROXY; //Support only this mode

    int order() default Ordered.LOWEST_PRECEDENCE;
}
